﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Runtime.Serialization;

/// <summary>
/// 所有任务的基类
/// </summary>
[DataContract]
[KnownType(typeof(Task))]
public class Task
{
    public Task()
    {

    }

    [DataMember]
    public int ID { get; set; }


    [DataMember]
    public DateTime date { get; set; }

    /// <summary>
    /// 任务描述
    /// </summary>
    [DataMember]
    public string description { get; set; }

    /// <summary>
    /// 任务开始时间
    /// </summary>
    [DataMember]
    public DateTime start_time { get; set; }

    /// <summary>
    /// 任务的期限
    /// </summary>
    [DataMember]
    public DateTime end_time { get; set; }

    /// <summary>
    /// 负责人
    /// </summary>
    [DataMember]
    public string coordinator { get; set; }

    /// <summary>
    /// 执行人
    /// </summary>
    [DataMember]
    public string operater { get; set; }

    /// <summary>
    /// 所属工程名称
    /// </summary>
    [DataMember]
    public string project { get; set; }

    /// <summary>
    /// 是否是每天任务
    /// </summary>
    [DataMember]
    public bool everyday_task { get; set; }

    /// <summary>
    /// 级别
    /// </summary>
    [DataMember]
    public ETASKLEVEL level { get; set; }

    public enum ETASKLEVEL
    {
        Normal = 0, 
        Important = 1
    }
}
